package com.googlecode.java_cl_parser;

import junit.framework.Assert;
import org.junit.Test;

@CLIEntry(
		description = "",
		version = "1.0"
)
public class DefaultValues
{
	int tc = 0;

	@CLIOption(
			name = "tc",
			defaultValue = "10"
	)
	public void setThreadCount(int count)
	{
		tc = count;
		Assert.assertEquals(tc, 10);
	}

	public void main()
	{
	}

	@Test
	public void testShortOptions() throws Exception
	{
		DefaultValues basicTest = new DefaultValues();
		CommonsCLILauncher.mainWithInstance(basicTest, new String[]{});

		Assert.assertEquals(basicTest.tc, 10);
	}
}